import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Qiuyu {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        double a,b;
        System.out.println("请输入两个数:");
        a=in.nextDouble();
        b=in.nextDouble();
        double c=a%b;
        System.out.println("余数是："+c);
        //double k=a++;//后置：先操作，再自加
        double k=++a;//前置：先自加，再操作
        System.out.println("k="+k+",a="+a);
    }
}
